<?php 
                    $months = array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep",
                                    "Oct", "Nov", "Dec");
                    ini_set("date.timezone", "Europe/Paris");
                    for($i=0 ; $i<12; $i++){
                        $dropdown_data[$i+1]=$months[$i];
                    }                
                        
                        ?>
<script>
    /****************************Check*Form*Valid********************************/
    $(function(){
        $("#postContent").validate({
            rules: {
                firstname: "required",
                lastname: "required",
                region: "required"
 
            },
            messages: {
                firstname: "Ce champ est obligatoire !",
                lastname: "Ce champ est obligatoire !",
                region: "Ce champ est obligatoire !"
                
            }
        });
    });
</script>

<div id="postContentWrapper">
        <div id="postContent">
<form id="postContent" name="postContent" method="post" action="">
    
            <label for="image">Image :
            <input type="file" name="image" id="image"/></label>
            <label for="firstname">First name :
            <input type="text" name="firstnameu" id="firstnameu"/></label>
            <label for="lastname">Last name :
            <input type="text" name="firstnameu" id="lastnameu"/></label>
  
        
            <label for="birthday">Birthday :</label>
            <!--Birthday-->
            
                D : <input name="birthDate" id="birthDate" type="text" size="2" maxlength="2"/>
                M :          
                <?php echo form_dropdown('month',$dropdown_data,'1','id="month"');?>
                 Y : <input name="birthYear" id="birthYear" type="text" size="4" maxlength="4"/>
 
       
            <label for="death">Death :</label>
            <!--Death-->
            <td width="30%">
                D : <input name="deathDate" id="deathDate" type="text" size="2" maxlength="2"/>
                M :          
                <?php echo form_dropdown('month',$dropdown_data,'1','id="month"');?>
                 Y : <input name="deathYear" id="deathYear" type="text" size="4" maxlength="4"/>
   
        
            <label for="description">Description : </label>
            <div>
                <?php                                                                 
                    $data = array('name' => 'txtDes',
                    'id' => 'txtDes',
                    'width' => '600',
                    'height' => '400');
                     echo form_fckeditor($data);
                ?>
            </div>
        
        <label for="region">Region :
            <input type="text" name="region"/></label>
        
            <input type="submit" name="postContent" id="postContent" value="Post"</td>
 
</form>
    </div>
</div>